<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ attribute name="roleUser" required="true" rtexprvalue="true" type="java.lang.String" %>
<c:if test="${roleUser == 'ADMIN'}">
    <ul type="circle">
        <li>User
            <ul type="disc">
                <li>
                    <form name="adminAddUserMenu" action="controller" method="post">
                        <input type="hidden" name="path" value="/WEB-INF/jsp/admin/registrationAdmin.jsp">
                        <input type="hidden" name="action" value="goto">
                        <input type="submit" value="Add user" name="submit" class="menuButton">
                    </form>
                </li>
                <li>
                    <form name="ChangePasswordMenu" action="controller" method="post">
                        <input type="hidden" name="path" value="/WEB-INF/jsp/changePassword.jsp">
                        <input type="hidden" name="action" value="goto">
                        <input type="submit" value="Change password" name="submit" class="menuButton">
                    </form>
                </li>
                <li>
                    <form name="signOut" action="controller" method="post">
                        <input type="hidden" name="action" value="signOut">
                        <input type="submit" value="Sign out" name="submit" class="menuButton"></form>
            </ul>
        </li>
        <li>Catalog
            <ul type="disc">
                <li>
                    <form name="adminSpecialtiesMenu" action="controller" method="post">
                        <input type="hidden" name="action" value="catalogSpecialties">
                        <input type="submit" value="Specialties" name="submit" class="menuButton">
                    </form>
                </li>
                <li>
                    <form name="adminAdmissionsMenu" action="controller" method="post">
                        <input type="hidden" name="action" value="catalogAdmissions">
                        <input type="submit" value="Admissions" name="submit" class="menuButton">
                    </form>
                </li>
                <li>
                    <form name="adminInputMarksMenu" action="controller" method="post">
                        <input type="hidden" name="action" value="inputMarksMenu">
                        <input type="submit" value="Input marks" name="submit" class="menuButton">
                    </form>
                </li>
            </ul>
        </li>
        <li>Order
            <ul type="disc">
                <li>
                    <form name="adminOrderViewMenu" action="controller" method="post">
                        <input type="hidden" name="action" value="ordersList">
                        <input type="submit" value="Orders" name="submit" class="menuButton">
                    </form>
                </li>
                <li>
                    <form name="adminNewOrderMenu" action="controller" method="post">
                        <input type="hidden" name="action" value="newOrder">
                        <input type="submit" value="New order" name="submit" class="menuButton">
                    </form>
                </li>
            </ul>
        </li>
    </ul>
</c:if>
<c:if test="${roleUser == 'USER'}">
    <ul type="circle">
        <li>User
            <ul type="disc">
                <li>
                    <form name="ChangePasswordMenu" action="controller" method="post">
                        <input type="hidden" name="path" value="/WEB-INF/jsp/changePassword.jsp">
                        <input type="hidden" name="action" value="goto">
                        <input type="submit" value="Change password" name="submit" class="menuButton">
                    </form>
                </li>
                <li>
                    <form name="signOut" action="controller" method="post">
                        <input type="hidden" name="action" value="signOut">
                        <input type="submit" value="Sign out" name="submit" class="menuButton"></form>
            </ul>
        </li>
        <li>Order
            <ul type="disc">
                <li>
                    <form name="userOrderViewMenu" action="controller" method="post">
                        <input type="hidden" name="action" value="newOrder">
                        <input type="submit" value="New order" name="submit" class="menuButton">
                    </form>
                </li>
                <li>
                    <form name="userOrderMenu" action="controller" method="post">
                        <input type="hidden" name="action" value="orderView">
                        <input type="submit" value="Order" name="submit" class="menuButton">
                    </form>
                </li>
            </ul>
        </li>
    </ul>
</c:if>